<?php

/**
 * webservice actions.
 *
 * @package    Terapia Vital
 * @subpackage webservice
 * @author     Foxsis
 * @version    SVN: $Id: actions.class.php 12479 2008-10-31 10:54:40Z fabien $
 */
class webserviceActions extends sfActions
{
	/**
	 * Executes index action
	 *
	 * @param sfRequest $request A request object
	 */
	public function executeIndex(sfWebRequest $request)
	{
		$cliente = new SoapClient(sfConfig::get('app_ws_url'), array("encoding" => "ISO-8859-1"));
		$result = $cliente->publicarArtigo(
			'marcelo',
			'Teste do Marcelo 2',
			'conteudo do texto 2',
			'http://www.creatix.com.br'
		);	
		
			echo $result;
	}
}
